package com.group.www.dao.impl;

import com.group.www.pojo.GoodsInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.awt.print.Pageable;
import java.util.List;

@Mapper
public interface GoodsInfoDao {
    public boolean add(GoodsInfo entity);
    public boolean update(GoodsInfo entity);
    public boolean delete(@Param(value = "ids") String ids, @Param(value = "categoryids") String categoryids);
    public List<GoodsInfo> queryAll(@Param(value = "brindid") String brandid, @Param(value = "names") String names, @Param(value = "types") String types);
    public GoodsInfo queryById(int id);
    public boolean updateSaleById(@Param(value = "id") int id, @Param(value = "issale") int issale);
    public List<GoodsInfo> query();
}
